package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Ye QS
 * @version 0.1
 * @className Product
 * @description 产品类
 * @date 2024/9/14 19:23
 * @since jdk11
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ApiModel("产品")
public class Product implements Serializable {
    @ApiModelProperty(value = "主键ID", hidden = true)
    private Integer id;

    @ApiModelProperty(value = "产品编码")
    private String code;

    @ApiModelProperty(value = "产品名称")
    private String name;

    @ApiModelProperty(value = "产品类型")
    private Byte type;

    @ApiModelProperty(value = "产品单位")
    private String unit;

    @ApiModelProperty(value = "封面图")
    private String picurl;

    @ApiModelProperty(value = "产品分类路径")
    private String categoryPath;

    @ApiModelProperty(value = "产品分类名称")
    private String categoryName;

    @ApiModelProperty(value = "型号")
    private String spec;

    @ApiModelProperty(value = "规格条码")
    private String specBarCode;

    @ApiModelProperty(value = "规格编码")
    private String specCode;

    @ApiModelProperty(value = "品牌")
    private Integer brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "材质id")
    private Integer materialId;

    @ApiModelProperty(value = "材质名称")
    private String materialName;

    @ApiModelProperty(value = "单重")
    private BigDecimal weight;

    @ApiModelProperty(value = "外形尺寸")
    private Integer size;

    @ApiModelProperty(value = "产品图号")
    private String productNumber;

    @ApiModelProperty(value = "工厂图号")
    private String factoryNumber;

    @ApiModelProperty(value = "原装图号")
    private String originalNumber;

    @ApiModelProperty(value = "库存")
    private Integer inventory;

    @ApiModelProperty(value = "价格")
    private Double price;

    @ApiModelProperty(value = "排序")
    private Integer sorts;

    @ApiModelProperty(value = "最低库存")
    private Integer min;

    @ApiModelProperty(value = "最高库存")
    private Integer max;

    @ApiModelProperty(value = "品牌资料")
    private String brandDetail;

    @ApiModelProperty(value = "产品详情")
    private String detail;

    @ApiModelProperty(value = "创建人名称")
    private String createUser;

    @ApiModelProperty(value = "创建人编码")
    private String userCode;
    @ApiModelProperty("轮播图")
    List<String> banner;
}
